package cn.cheln.support.shortcut;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;

/**
 * Created by Administrator on 13-11-14.
 */
public class AndroidUtil {

    public static void registerReceiver(BroadcastReceiver receiver,String[] actions,Context context){
        IntentFilter intentFilter = new IntentFilter();
        for(String s: actions){
            intentFilter.addAction(s);
        }
        context.registerReceiver(receiver, intentFilter);
    }
}
